//
//  JPFTreeVC.h
//  JPFUIKit
//
//  Created by jpf on 2022/2/16.
//  Copyright © 2022 jpf. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef enum : NSUInteger {
    JPFTreeVCType_SingleChoose,
    JPFTreeVCType_MultipleChoose,
    JPFTreeVCType_CanEdit,
    JPFTreeVCType_Edit,
} JPFTreeVCType;

@interface JPFTreeVC : JPFBaseVC


#pragma mark - Properties
@property (nonatomic, copy) void (^selectedBlock)(JPFTreeModel *node);
@property (nonatomic, copy) void (^multipleChooseBlock)(NSArray<JPFTreeModel*> *arr);
@property (nonatomic) NSInteger maxLevel;

- (instancetype)initWithType:(JPFTreeVCType)type data:(JPFTreeModel *)orgTree;

- (instancetype)initWithType:(JPFTreeVCType)type data:(JPFTreeModel *)orgTree showRoot:(BOOL)showRoot;


#pragma mark - Static Methods


#pragma mark - Instance Methods
- (NSArray<JPFTreeModel*> *)currentShowData;


@end
